{template 'header'}
<link rel="stylesheet" href="../addons/mx_shop/resources/cgc/css/member/address.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
<body  id="body">
<header class="mui-bar mui-bar-nav" style="background: #72adf5;">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white;"></a>
    <h1 class="mui-title" id="title" style="color: white;">选择地址</h1>
</header>
<div class="content" id="app">
    <ul>
        <li class="on">
           <span class="top">
                <span class="name">陈冠希</span>
               <span class="tel">13166668989</span>
               <span class="address">广东省广州市番禺区环城东路龙美村清河大道17号</span>
           </span>
            <span class="bottom">
                <!--单选按钮-->
                <img src="../addons/mx_shop/resources/cgc/images/c2_03.png" class="single_chose" alt="1">
                <span class="set">设置默认</span>
                <span class="iconfont icon-bianji" style="width: 0.25rem;height: 0.25rem;margin-left:1.3rem;display: inline-block;position: relative;bottom:0.13rem"></span>
                <span class="edit">编辑</span>
                <span class="iconfont icon-lajitong" style="width: 0.25rem;height: 0.25rem;position: relative;bottom: 0.13rem;margin-left: 0.3rem;"></span>
                 <span class="delete">删除</span>
            </span>
        </li>
        <li>
           <span class="top">
                <span class="name">陈冠希</span>
               <span class="tel">13166668989</span>
               <span class="address">广东省广州市番禺区环城东路龙美村清河大道17号</span>
           </span>
            <span class="bottom">
                <!--单选按钮-->
                <img src="../addons/mx_shop/resources/cgc/images/c1_03.png" class="single_chose" alt="0">
                <span class="set">设置默认</span>
                <span class="iconfont icon-bianji" style="width: 0.25rem;height: 0.25rem;margin-left:1.3rem;display: inline-block;position: relative;bottom:0.13rem"></span>
                <span class="edit">编辑</span>
                <span class="iconfont icon-lajitong" style="width: 0.25rem;height: 0.25rem;position: relative;bottom: 0.13rem;margin-left: 0.3rem;"></span>
                 <span class="delete">删除</span>
            </span>
        </li>
    </ul>
</div>
</body>
<script>
    $(function(){
        $(".single_chose").each(function(i){
            $(this).click(function(){
                $(".single_chose").attr("src","../addons/mx_shop/resources/cgc/images/c1_03.png");
                $(".single_chose").attr("alt","0");
               if($(this).attr("alt")==1){
                  $(this).attr("src","../addons/mx_shop/resources/cgc/images/c1_03.png");
                  $(this).attr("alt","0");
               }else{
                   $(this).attr("src","../addons/mx_shop/resources/cgc/images/c2_03.png");
                   $(this).attr("alt","1");
               }
            })
        })
    })
</script>
</html>